/************************************************************************/
/* Customized and extended version,                                     */
/* Original from James Waples Copyright (c) 2010                        */
/* http://www.jamwaffles.co.uk/index.php?p=downloads&s=cod&a=obl&dc     */
/************************************************************************/

#ifndef DEVILTEXTURE_H
#define DEVILTEXTURE_H

#include <IL/il.h>
#include "WindowsCompatibility/OpenGL.h"

class DevilTexture {
private:
	GLuint texID;
	ILuint ilTexID;
	ILboolean success;
	bool isLoaded;

	bool texAlpha;
	int width;
	int height;

public:
	DevilTexture();
	virtual ~DevilTexture();
	
	int Load(const char *fileName, bool anisotropy);		
	void Use();

	bool IsLoaded();
	int GetTextureID();
	int GetWidth();
	int GetHeight();
};

#endif //DEVILTEXTURE_H
